add_executable(tst_gltfplugins WIN32 MACOSX_BUNDLE
    tst_gltfplugins.cpp
)
target_link_libraries(tst_gltfplugins PRIVATE
    Qt${QT_VERSION_MAJOR}::3DCore
    Qt${QT_VERSION_MAJOR}::3DCorePrivate
    Qt${QT_VERSION_MAJOR}::3DExtras
    Qt${QT_VERSION_MAJOR}::3DRender
    Qt${QT_VERSION_MAJOR}::3DRenderPrivate
    Qt${QT_VERSION_MAJOR}::Core
    Qt${QT_VERSION_MAJOR}::Gui
    Qt${QT_VERSION_MAJOR}::Test
)


# Resources:
set(images_resource_files
    "ontopmaterial.frag"
    "ontopmaterial.vert"
    "ontopmaterialES2.frag"
    "ontopmaterialES2.vert"
    "qtlogo.png"
    "qtlogo_normal.png"
    "qtlogo_specular.png"
    "qtlogo_with_alpha.png"
)

qt_add_resources(tst_gltfplugins "images"
    PREFIX
        "/"
    FILES
        ${images_resource_files}
)

install(TARGETS tst_gltfplugins
    BUNDLE DESTINATION .
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

# Consider using qt_generate_deploy_app_script() for app deployment if
# the project can use Qt 6.3. In that case rerun qmake2cmake with
# --min-qt-version=6.3.
